<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 14408
  Date: 2022/1/12
  Time: 11:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
</head>

<body>
<div align="center">

    <form action="/dishes/add.do" method="post" name="form1"  >
        <table border="1" width="50%" bordercolorlight="#C0C0C0">
            <tr>
                <td height="25" bgcolor="#66CCFF" align="right" width="31%">菜品名称：</td>
                <td height="25" bgcolor="#FFE3BB" width="66%">
                    <input type="text" name="name" size="45"></td>
            </tr>
            <tr>
                <td height="25" bgcolor="#66CCFF" align="right" width="31%">原&nbsp;&nbsp;&nbsp;
                    料：</td>
                <td height="25" bgcolor="#FFE3BB" width="66%">
                    <input type="text" name="material" size="45"></td>
            </tr>
            <tr>
                <td height="25" bgcolor="#66CCFF" align="right" width="31%">单&nbsp;&nbsp;&nbsp;
                    价：</td>
                <td height="25" bgcolor="#FFE3BB" width="66%">
                    <input type="text" name="price" size="45"></td>
            </tr>
            <tr>
                <td height="25" bgcolor="#66CCFF" align="right" width="31%">说&nbsp;&nbsp;&nbsp;
                    明：</td>
                <td height="25" bgcolor="#FFE3BB" width="66%">
                    <textarea rows="12" name="instructions" cols="43"></textarea></td>
            </tr>
            <tr>
                <td height="25" bgcolor="#66CCFF" align="right" width="31%">菜品类别：</td>
                <td height="25" bgcolor="#FFE3BB" width="66%">
                    <select name="type">
                        <option value="1" >请选择菜品类别</option>
                            <c:forEach items="${typeList}" var="type">
                                <option value="${type.id}">${type.category}</option>
                            </c:forEach>
                    </select>
                </td>
            </tr>

            <tr>
                <td height="25" bgcolor="#66CCFF" align="center" colspan="2">
                    <input type="submit" value="添加"></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
